package com.xinminda.dcf.api;

import com.xinminda.dcf.app.UrlValue;
import com.xinminda.dcf.bean.BaseRespose;
import com.xinminda.dcf.bean.ColumnsBean;
import com.xinminda.dcf.bean.NewsSummary;
import com.xinminda.dcf.bean.UserBean;
import java.util.List;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

public interface ApiService {

    /*Login*/
    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Observable<BaseRespose<UserBean>> login(@Field("header") String header, @Field("param") String params);

    /*获取新闻栏目列表*/
    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Observable<BaseRespose<List<ColumnsBean>>> getNewChannel(@Field("header") String header);

    /*获取新闻栏目列表*/
    @POST(UrlValue.BASE)
    @FormUrlEncoded
    Observable<BaseRespose<List<NewsSummary>>> getNewsList(@Field("header") String header, @Field("param") String params);
}
